MUIFreeMemPropertiesΒΆ

MUIFreeMemProperties, hWin:MUIWND, cbWndExtraOffset:MUIPROPERTIES

Frees memory allocated via the MUIAllocMemProperties function. Used at the WM_DESTROY or WM_NCDESTROY event. Make sure any cleanup routines are called before freeing any memory.

Parameters

  • [in] hControl - handle to the ModernUI control
  • [in] cbWndExtraOffset - offset in the WNDCLASS.cbWndExtra memory location. For ease of use, the following constants can be used: MUI_INTERNAL_PROPERTIES or MUI_EXTERNAL_PROPERTIES

Return

Returns TRUE if successful or FALSE otherwise

Example

; MyControl.asm:

.ELSEIF eax == WM_DESTROY
   ; Cleanup before freeing memory
   Invoke MyControlCleanup, hWin
   ; Free internal and external property storage memory for MyControl
   Invoke MUIFreeMemProperties, MUI_INTERNAL_PROPERTIES
   Invoke MUIFreeMemProperties, MUI_EXTERNAL_PROPERTIES
   mov eax, 0
   ret

See Also

MUIAllocMemProperties, MUIAllocStructureMemory, WM_DESTROY, WM_NCDESTROY, WNDCLASS